package org.andao.security.model;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户Vo类，仅含基本信息用于展示
 * 
 * @author Seewo Software - Vick.liu (liuguanglin@cvte.cn)
 * 
 */
public class UserVo implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 717059859251584085L;

	private String resourceid;

	private String username;// 用户登录账号

	private String cnName;// 用户中文名

	private Boolean enabled = true;// 是否允许

	private Boolean isDeleted = false;// 是否已经删除

	private Date lastLoginTime = new Date();// 最后登录时间

	private String loginIp;// 登录IP

	private String userType;// 用户类型 如管理人员: manager 配置在全局参数中

	private String photoURL;

	private String orgUnit;// 组织名称

	private String orgUnitId;// 组织名称

	private String roles;// 角色名称，用“,”分开

	private String roleIds;// 角色名称，用“,”分开

	private int showOrder = 0;// 排序号

	public UserVo() {
		super();
	}

	public UserVo(String resourceid, String username, String cnName, boolean enabled, boolean isDeleted, Date lastLoginTime, String loginIp, String userType, String photoURL, String orgUnit, String orgUnitId, String roles, String roleIds, int showOrder) {
		super();
		this.resourceid = resourceid;
		this.username = username;
		this.cnName = cnName;
		this.enabled = enabled;
		this.isDeleted = isDeleted;
		this.lastLoginTime = lastLoginTime;
		this.loginIp = loginIp;
		this.userType = userType;
		this.photoURL = photoURL;
		this.orgUnit = orgUnit;
		this.orgUnitId = orgUnitId;
		this.roles = roles;
		this.roleIds = roleIds;
		this.showOrder = showOrder;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getCnName() {
		return cnName;
	}

	public void setCnName(String cnName) {
		this.cnName = cnName;
	}

	public Boolean getEnabled() {
		return enabled;
	}

	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}

	public Date getLastLoginTime() {
		return lastLoginTime;
	}

	public void setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

	public String getLoginIp() {
		return loginIp;
	}

	public void setLoginIp(String loginIp) {
		this.loginIp = loginIp;
	}

	public String getUserType() {
		return userType;
	}

	public void setUserType(String userType) {
		this.userType = userType;
	}

	public String getPhotoURL() {
		return photoURL;
	}

	public void setPhotoURL(String photoURL) {
		this.photoURL = photoURL;
	}

	public String getOrgUnit() {
		return orgUnit;
	}

	public void setOrgUnit(String orgUnit) {
		this.orgUnit = orgUnit;
	}

	public String getOrgUnitId() {
		return orgUnitId;
	}

	public void setOrgUnitId(String orgUnitId) {
		this.orgUnitId = orgUnitId;
	}

	public String getRoles() {
		return roles;
	}

	public void setRoles(String roles) {
		this.roles = roles;
	}

	public String getRoleIds() {
		return roleIds;
	}

	public void setRoleIds(String roleIds) {
		this.roleIds = roleIds;
	}

	public int getShowOrder() {
		return showOrder;
	}

	public void setShowOrder(int showOrder) {
		this.showOrder = showOrder;
	}

	public String getResourceid() {
		return resourceid;
	}

	public void setResourceid(String resourceid) {
		this.resourceid = resourceid;
	}

	public Boolean getIsDeleted() {
		return isDeleted;
	}

	public void setDeleted(boolean isDeleted) {
		this.isDeleted = isDeleted;
	}

}
